package com.ynet.middleground.approve.bean;

import java.util.List;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;

import com.ynet.core.common.BaseReqObj;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author liulx
 * @description 任务委派、转办请求类
 * @date 2019-11-03 16:34
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "任务委派、转办请对象", description = "任务委派、转办请对象")
public class TransferTaskReq extends BaseReqObj {

    private static final long serialVersionUID = -5777147145355504781L;

    @ApiModelProperty(value = "任务ID", notes = "任务ID", dataType = "String", required = true)
    @NotBlank(message = "任务ID不能为空")
    private String taskId;

    @ApiModelProperty(value = "审批人, 填写会校验是否与任务处理人一致", notes = "一般指流程任务的处理人", dataType = "String")
    private String assignee;

    @ApiModelProperty(value = "任务接受人", notes = "被指定的用户，任务转办接受人", dataType = "String", required = true)
    @NotBlank(message = "任务接受人不能为空")
    private String receiver;

    @ApiModelProperty(value = "审批意见附件信息列表", notes = "审批意见附件信息列表")
    @Valid
    private List<CommentFile> commentFiles;

}
